package com.javaAPI.demo8;

public class Test1 {
    public static void main(String[] args) {


        String str = "huaweiAndhuawei";
        //字符串下标位置开始
        System.out.println(str.indexOf("hua"));
        //第二个字符串下标位置开始
        System.out.println(str.indexOf("aw",2));


        //65----A   97-----Z
        String str1 = "huaweiAndhuawei";
        System.out.println(str1.indexOf(65));
        System.out.println(str1.indexOf(97));
    }
}
